import extend from './extend.vue'
import { createApp } from 'vue'
//
const uploadFrom = {}
uploadFrom.install = (app) =>{
    //
    app.config.globalProperties.$uploadFrom = function(
        callback, isMore, modelName, booleanVal
    ) {
        const container = document.createElement('div');
        document.body.appendChild(container);
        const instance = createApp(extend,{
            visible: true,
            closeFunc: () => {
                instance.unmount();
                document.body.removeChild(container);
                container.remove();
            },
        });
        instance.mount(container);
    };
}
//
export default uploadFrom;